package team.southcat.wsyygh.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import team.southcat.wsyygh.model.pojo.order.Order;
import team.southcat.wsyygh.model.pojo.order.OrderCountQueryVo;
import team.southcat.wsyygh.model.pojo.order.OrderVo;
import team.southcat.wsyygh.model.pojo.user.PatientVo;

import java.sql.Wrapper;
import java.util.Map;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author QiuSiYi
 * @since 2023-04-20
 */
public interface OrderService extends IService<Order> {
    Page getOrderPageList(Integer page, Integer pageSize, OrderVo orderVo);

    OrderVo selectById(long id);

    PatientVo selectPatientById(Long patientId);

    //预约统计方法
    Map<String,Object> getCountMap(OrderCountQueryVo orderCountQueryVo);

    Long saveOrder(String scheduleId, Long patientId);

    Page<OrderVo> selectPage(Long page, Long limit, OrderVo orderVo);

    boolean cancelOrder(long orderId);

    boolean pay(long orderId);
}
